package cn.chiship.bs.api.biz.pojo.dto;

import cn.chiship.sdk.core.base.constants.BaseTipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lj
 */
@ApiModel(description = "会员表单")
public class MemberUserDto {
    @ApiModelProperty(value = "真实姓名", required = true)
    @NotNull(message = "真实姓名" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 2, max = 5, message = "真实姓名" + BaseTipConstants.LENGTH_MIN_MAX)
    private String realName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotNull(message = "手机号" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 11, max = 11, message = "手机号" + BaseTipConstants.LENGTH_MIN_MAX)
    private String mobile;

    @ApiModelProperty(value = "标签")
    private String tags;

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }
}
